package com.pandora.credit.dao;

import com.pandora.credit.entity.Announcement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author developer
 */
public interface AnnouncementDao {

    /**
     * queryByMidValid
     * @param mid mid
     * @param valid valid
     * @return AnnouncementList
     */
    List<Announcement> queryByMidValid(@Param("mid") long mid, @Param("valid") int valid);

    /**
     * queryByValidltId
     * @param mid mid
     * @param valid valid
     * @return AnnouncementList
     */
    List<Announcement> queryByValidltId(@Param("id") long mid, @Param("valid") int valid);

}
